import request from '@/utils/request'

// 查询活动参与列表
export function listPeopleActivity(query) {
  return request({
    url: '/docs/peopleActivity/list',
    method: 'get',
    params: query
  })
}

// 查询活动参与详细
export function getPeopleActivity(peopleActivityId) {
  return request({
    url: '/docs/peopleActivity/' + peopleActivityId,
    method: 'get'
  })
}

// 新增活动参与
export function addPeopleActivity(data) {
  return request({
    url: '/docs/peopleActivity',
    method: 'post',
    data: data
  })
}

// 修改活动参与
export function updatePeopleActivity(data) {
  return request({
    url: '/docs/peopleActivity',
    method: 'put',
    data: data
  })
}

// 删除活动参与
export function delPeopleActivity(peopleActivityId) {
  return request({
    url: '/docs/peopleActivity/' + peopleActivityId,
    method: 'delete'
  })
}
